<script>
	$(function(){
		pageNav.go(${pageNum},${myGroupPage.totalPage});
	});
</script>
<script type="text/javascript">
	function login() {
		var password = $('#password').attr('value');
		
		$('#passwordMD5').attr('value',hex_md5(password));
		
		$('#loginForm').submit();
	}
</script>
<div class="Main">
<div class="left">
<div class="ban"><img src="${basePath}images/ban.jpg" width="590" height="190" /></div>
<!-- 位置start -->
<div class="wz"><span>您所在的位置：<a href="#">乐共享首页</a>-&gt;<a href="#">圈子</a></span></div>
<!-- 推荐圈子 -->
<div class="Hot_qz_list">
<h1><span>推荐圈子</span></h1>
<#if hotGroupTop1?exists>
	<div class="p1">
		<a href="${basePath}groupChat/index.htm?groupId=${hotGroupTop1.id}"><img src="${basePath}${hotGroupTop1.groupImage}" width="186" height="186" /></a>
		<p class="p2"></p>
		<div class="p3">${hotGroupTop1.name}</div>
	</div>
<#else>
	<div class="p1">暂无记录</div>
</#if>
<ol>
	<#list hotGroupList as hotGroup>
		<#if hotGroup_index == 0>
		<#else>
			<li>
				<dl>
		    		<dt><a href="${basePath}groupChat/index.htm?groupId=${hotGroup.id}"><img src="${basePath}${hotGroup.groupImage}" width="52" height="52" /></a></dt>
		    		<dd><a href="${basePath}groupChat/index.htm?groupId=${hotGroup.id}">${hotGroup.name}</a></dd>
		    		<dd>${hotGroup.userNum?default('0')}人参与</dd>
		    	</dl>
		    </li>
		</#if>
	</#list>
</ol>


</div>
<!-- 热点话题end -->
<!-- 话题列表end -->
<div class="Ht_list">
<DIV class="tesezhilv">
<h1></h1><span>我的圈子</span>
<DIV class="qz_list">
    <ol>
    	<#list myGroupPage.rows as myGroup>
			<li>
				<dl>
    				<dt><a href="${basePath}groupChat/index.htm?groupId=${myGroup.id}"><img src="${basePath}${myGroup.groupImage}" width="104" height="104" /></a></dt>
    				<dd><a href="${basePath}groupChat/index.htm?groupId=${myGroup.id}" class="list_text">${myGroup.name}</a></dd>
    				<dd>${myGroup.userNum?default('0')}人参与</dd>
    			</dl>
    		</li>
		</#list>
    </ol>
</div>
</DIV>
<#if (myGroupPage.total > 0)>
	<div class="page-nav" id="pageNav"></div>
<#else>
	<div class="page-nav">暂无记录</div>
</#if>
<form action="${basePath}group/groupSearch.htm" method="post" name="searchForm" id="searchForm">
<input type="hidden" name="page" id="page" />
</form>
</div>
<!-- 话题列表end -->
</div>
<div class="right">
<!-- 登录/注册 -->
<#if s_user?exists && s_userExpand?exists>
	<div class="Reg2">
		<ol>
		<li class="lk"><dl><dt><img src="${basePath}${s_userExpand.headImage?default('')}" width="47" height="47" /></dt><dd class="aa">${s_user.username?default('')}</dd><dd><img src="${basePath}images/djimg.jpg" width="36" height="15" /></dd>
		</dl></li>
		<li><a href="#">我的话题</a></li><li><a href="#">我的圈子</a></li><li><a href="#">我的乐友</a></li><li><a href="${basePath}home/logout.htm?redirectUrl=group/group">退出</a></li>
		</ol>
	</div>
<#else>
	<form action="${basePath}home/login.htm" method="post" name="loginForm" id="loginForm">
		<div class="Reg"><ul>
		<li><a href="#"><img src="${basePath}images/regbut1.jpg" width="182" height="54" /></a></li>
		<li><input name="username" type="text" class="te1" /></li>
		<li><input name="password" id="password" type="password" class="te1"  />
		<input type="hidden" id="passwordMD5" name="passwordMD5" /></li>
		<li><!--<input name="" type="checkbox" value="" />下次自动登录<span><a href="#">忘记密码</a></span>--></li>
		<li class="Reg_but"><input name="" type="button" value="" onclick="login()"/></li>
		<li align="center">
			<#if errorMsg?exists>
				<font color="red">${errorMsg}</font>
			</#if></li>
		</ul></div>
		<input type="hidden" name="redirectUrl" id="redirectUrl" value="group/group" />
	</form>
</#if>
<!-- 热门话题排行榜 -->
<div class="hot_ht">
<h1><span>热门话题排行榜</span></h1>
<ol>
<li><a href="#"><img src="${basePath}images/yh1.jpg" width="47" height="47" /></a><a href="#">叶思睿</a></li>
<li><a href="#"><img src="${basePath}images/yh2.jpg" width="47" height="47" /></a><a href="#">叶思睿</a></li>
<li><a href="#"><img src="${basePath}images/yh3.jpg" width="47" height="47" /></a><a href="#">叶思睿</a></li>
<li><a href="#"><img src="${basePath}images/yh1.jpg" width="47" height="47" /></a><a href="#">叶思睿</a></li>
<li><a href="#"><img src="${basePath}images/yh2.jpg" width="47" height="47" /></a><a href="#">叶思睿</a></li>
<li><a href="#"><img src="${basePath}images/yh3.jpg" width="47" height="47" /></a><a href="#">叶思睿</a></li>
<li><a href="#"><img src="${basePath}images/yh1.jpg" width="47" height="47" /></a><a href="#">叶思睿</a></li>
</ol>
</div>
</div></div>